exports.host_url = 'http://54.206.41.45/general/API/FuelAPI.ashx';
exports.query_mode = 'FuelSeed';
exports.query_token = 'robot';
exports.city_name_list = ['Sydney', 'Melbourne', 'Adelaide'];
exports.city_id_list = [2, 3, 8];
exports.syd_fuel_type_id_list = [-1, 0, 1, 2, 3, 4];
exports.syd_fuel_type_name_list = ['All Type', 'ULP', 'E10', 'LPG', 'DIESEL', 'ULP 98'];
exports.mel_fuel_type_id_list = [-1, 2, 3, 4, 5, 6];
exports.mel_fuel_type_name_list = ['All Type', 'ULP', 'DIESEL', 'LPG', 'PULP', 'E10'];
exports.adl_fuel_type_id_list = [-1, 0, 1];
exports.adl_fuel_type_name_list = ['All Type', 'ULP', 'DIESEL'];
exports.get_city_name = function(city_id) {
	var city_name = "";
	for (var i = 0, j = this.city_id_list.length; i < j; i++) {
		if (this.city_id_list[i] == city_id) {
			city_name = this.city_name_list[i];
		}
	}
	return city_name;
};
exports.get_fuel_name = function(city_id, fuel_type_id) {
	var fuel_name = "";
	var i = 0, j = 0;
	switch(city_id) {
		case 2:
			//sydney
			for ( i = 0, j = this.syd_fuel_type_id_list.length; i < j; i++) {
				if (this.syd_fuel_type_id_list[i] == fuel_type_id) {
					fuel_name = this.syd_fuel_type_name_list[i];
				}
			}
			break;
		case 3:
			//mel
			for ( i = 0, j = this.mel_fuel_type_id_list.length; i < j; i++) {
				if (this.mel_fuel_type_id_list[i] == fuel_type_id) {
					fuel_name = this.mel_fuel_type_name_list[i];
				}
			}
			break;
		case 8:
			//adl
			for ( i = 0, j = this.adl_fuel_type_id_list.length; i < j; i++) {
				if (this.adl_fuel_type_id_list[i] == fuel_type_id) {
					fuel_name = this.adl_fuel_type_name_list[i];
				}
			}
			break;
	}
	return fuel_name;
};
